package com.wgy.day38方法引用.通过对象名引用成员方法;

/**
 * Created by pc on 2020/12/14 21:30
 * Description: LearningJava
 */
public class MethodRerObject {
    //定义一个成员方法,传递字符串,把字符串按照大写输出
    public void printUpperCase(String str){
        System.out.println(str.toUpperCase());
    }
}
